<%@ page language="java" pageEncoding="utf-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script>
//ID排序

var cm = new Ext.grid.ColumnModel([
			{header:'编号',dataIndex:'id',sortable:true},
			{header:'名称',dataIndex:'name'},
			{header:'描述',dataIndex:'descn'}
			]) ;
var data = [
			['1','name1','descn1'],
			['2','name2','descn2'],
			['3','name3','descn3'],
			['4','name4','descn4'],
			['5','name3','descn5']
			] ;
var ds = new Ext.data.Store({
			proxy:new Ext.data.MemoryProxy(data),
			reader:new Ext.data.ArrayReader({},[
			{name: 'id'},
			{name: 'name'},
			{name: 'descn'}
			])
			}) ;
ds.load() ;
var grid = new Ext.grid.GridPanel({
			el:'grid2',
			ds: ds,
			cm: cm
			}) ;
grid.render() ;

</script> 

<div id="grid2">

</div>